const DATAA_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss"
import dayjs from "dayjs"
import utc from "dayjs/plugin/utc"

dayjs.extend(utc)

export function formatUtcString(utcString: string, format: string = DATAA_TIME_FORMAT) {
  return dayjs.utc(utcString).format(format)
}
